package com.by.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "sc-stock")
public interface StockClient {
    /**
     * 更新库存
     * @param goodsId
     * @param num
     * @return
     */
    @PutMapping("/stock")
    int updateStock(@RequestParam("goodsId") int goodsId,@RequestParam("num") int num);
}
